home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Entertainment / MacMud / Mud 4.0 / stat.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-30  |  459 b   |  25 lines  |  [TEXT/MPS ]

  1.  
  2. #ifndef __STAT__
  3. #define __STAT__
  4.  
  5. #include <Types.h>
  6. #include <Files.h>
  7. #include <string.h>
  8. #include <Strings.h>
  9. #include <errno.h>
  10.  
  11. #define S_IFMT        0170000        /* type of file */
  12. #define  S_IFDIR    0040000        /* directory */
  13. #define  S_IFREG    0100000
  14. #define  S_IFLNK    0120000
  15.  
  16. struct stat {
  17.     unsigned short st_mode;
  18.     unsigned long st_size;
  19.     unsigned long st_mtime;
  20. };
  21.  
  22. extern int stat(char *fname, struct stat *buf);
  23. extern Boolean touchup(char *filename);
  24.  
  25. #endif